<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<load href="__PUBLIC__/css/lwy2011.css" />
<load href="__PUBLIC__/Css/common.css" />
<script type="text/javascript" src="__ROOT__/Public/Js/jquery-1.5.0.min.js"></script>
<script type="text/javascript" src="__ROOT__/Public/Js/core.js"></script>
<title>文章列表页</title>
<script>
function checkForm(opt){
   //alert('b');
   var flag=false;
   $(":checkbox").each(function () {
        if($(this).attr("checked")){
		  flag=true;
		  //break;
		  }
      });
   if(flag){
   if(opt='d')
   document.listForm.action="admin.php?s=SNSAdmin/delRecommend"
   document.listForm.submit();
   return false;
   }
   else {
     alert('未选择任何内容');
     return false;
   }
}
</script>
</head>
<body>

<div style="width:960px; margin:50px auto; text-align:center;">
   <layout name="Public:sns-header" cache="0" />
   <div style="width:80%; float:left; background-color:#FFF">
  <form action="admin.php?s=SNSAdmin/setRecommendOrder" method="post" name="listForm">
  <table width="100%" border="0" align="center">
  <tr>
    <td colspan="5">当前操作：社区会员列表</td>
  </tr>
  <tr align="center">
    <th width="53">
    
    <th width="237">会员信息
    
    <th colspan="2">会员介绍
    <th width="99">操作</td>  </tr>
  <if condition="$count gt 0">
  <volist name='list' id='item'>
  <tr>
    <td><p>&nbsp;</p>	</td>
    <td><input name="ids[]" type="hidden" value="{$item['id']}" />
      {$item['id']} <img src="{$item['icon']}" />
      <p>{$item['username']}</p></td>
    <td colspan="2">{$item['introduce']}</td>
    <td>&nbsp;&nbsp;<a href="admin.php?s=SNSAdmin/delRecommend/id/{$item['id']}" onclick="return confirm('确定删除该记录？')"></a></td>
  </tr>
  </volist>
  <tr>
    <td colspan="5">{$nav}</td>
    </tr>
	<else/>
	 <tr><td colspan="5" align="left">
	 <!--操作:【<a href="__URL__/recommendForm/id/{$id}">增加</a>】【<a href='' onclick="return checkForm('d');">删除选择推荐内容</a>】-->
        </td>
	 </tr>
	</if>
</table>
</form>
</div></div>

</body>
</html>
